package com.atguigu.marketing.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 营销规则
 * </p>
 *
 * @author zhangchen
 * @since 2023-02-02
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="MarketingRule对象", description="营销规则")
public class MarketingRule implements Serializable {

    private static final long serialVersionUID = 1L;

      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "营销规则名称")
    private String marketingRuleName;

    @ApiModelProperty(value = "是否启用 0,1")
    private String isEnable;


    @TableField(exist = false) //标识当前属性不存在字段
    private MarketingRuleChannel marketingRuleChannel=new MarketingRuleChannel();
    @TableField(exist = false)
    private MarketingRuleTime marketingRuleTime=new MarketingRuleTime();
    @TableField(exist = false)
    private MarketingRuleGroup marketingRuleGroup=new MarketingRuleGroup();

    @TableField(exist = false)
    private String pushTimeInfo;

    @TableField(exist = false)
    private String groupInfo;

    @TableField(exist = false)
    private String dateInfo;

    @TableField(exist = false)
    private String channelTypeName;

    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    @ApiModelProperty(value = "更新时间")
    private  Date updateTime;


}
